<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>编辑万物银行</title>


<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" /><link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript" src="/resources/admin/datePicker/WdatePicker.js"></script>
<style type="text/css">
.roles label {
	width: 150px;
	display: block;
	float: left;
	padding-right: 5px;
}
</style>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
    var $browserButton = $("#browserButton");
    $browserButton.browser();
	[@flash_message /]
	
	// 表单验证
	$inputForm.validate({
		rules: {
			password: {
				pattern: /^[^\s&\"<>]+$/,
				minlength: 4,
				maxlength: 20
			},
			rePassword: {
				equalTo: "#password"
			},
			email: {
				required: true,
				email: true
			},
			roleIds: "required"
		},
		messages: {
			password: {
				pattern: "${message("admin.validate.illegal")}"
			}
		}
	});

});
</script>
</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">${message("admin.path.index")}</a> &raquo; 编辑万物银行
	</div>
	<form id="inputForm" action="update.htm" method="post">
		<input type="hidden" name="id" value="${futureBank.id}" />
		<ul id="tab" class="tab">
			<li>
				<input type="button" value="万物银行信息" />
			</li>
		</ul>
		<table class="input tabContent">
			<tr>
				<th>
					用户:
				</th>
				<td>
                    ${(futureBank.member.name)!"-"}
				</td>
			</tr>
            <tr>
                <th>
                    形式:
                </th>
                <td>
                    <select id="shippingWays" name="shippingWays">
					[#list shippingWays.keySet() as key]
                        <option value="${key}" [#if key == futureBank.shippingKey]selected=selected[/#if]>
						${key}
                        </option>
					[/#list]
                    </select>
                </td>
            </tr>
			<tr>
				<th>
					物件:
				</th>
				<td>
                    <select id="dataType" name="dataType">
					[#list dataType as dataType]
                        <option value="${dataType}" [#if dataType == futureBank.dataType]selected=selected[/#if]>
							[#if dataType=="book"]书[#else]明信片[/#if]
                        </option>
					[/#list]
                    </select>
				</td>
			</tr>
			<tr>
				<th>
					收货地址:
				</th>
				<td>
					<input type="text" name="address" id="address" value="${futureBank.address}" class="text" maxlength="20" />
				</td>
			</tr>
            <tr>
                <th>
                    图片:
                </th>
                <td>
                    <input type="text" name="image" class="text" value="${futureBank.image}" maxlength="200" />
                    <input type="button" id="browserButton" class="button" value="${message("admin.browser.select")}" />
                </td>
            </tr>
            <tr>
                <th>
                    寄存时段:
                </th>
                <td>
					<input type="text" id="month" name="month" value="${futureBank.month}"/>月
                    <input type="text" id="beginDate" name="beginDate"  class="text Wdate" onclick="WdatePicker();" value="${futureBank.beginDate}" style="width: 140px;">至
                    <input type="text" id="endDate" name="endDate"  class="text Wdate" onclick="WdatePicker();" value="${futureBank.endDate}" style="width: 140px;">
                </td>
            </tr>
            <tr>
                <th>
                    小计:
                </th>
                <td>
                    <input type="text" name="subtotal" class="text" value="${futureBank.subtotal}" maxlength="200" />
                </td>
            </tr>
		</table>
		<table class="input">
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="${message("admin.common.submit")}" />
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.htm'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>